// index.js
// 获取应用实例
const app = getApp()

Page({
  data: {
    haibao: false,
    ishaibao: false
  },

  onLoad() {

  },

  onReady() {

  },

  onShow() {

  },

  showBox() {
    this.setData({
      haibao: true
    })
  },

  closewin() {
    this.setData({
      ishaibao: false
    })
    console.log('关闭弹窗')
  },
  createShareImage() {

    this.setData({
      ishaibao: true
    })

    this.setData({
      shareImageData: {
        width: 750,
        height: 1334,
        previewImageHeight: 1000,
        drawList: [
          {
            type: 'image',
            url: 'https://tfxcx.house365.com/api/getimg/httpsimg/img/aHR0cHM6Ly90aGlyZHd4LnFsb2dvLmNuL21tb3Blbi92aV8zMi9ybzhBTEpBbHpKQVhpYnVQeURIeTJ1MHZSVFVqUTE5bVdUaWF2ZktSaWNNemxUYmhBYmx6cXNpYmxscDRqSWxBaWNYQ3RaRWxNdWFTaWF0TlZZZXNlS1RlOGNhZy8xMzI=.png',
            width: 343,
            height: 143, //如果是圆形 heigth 值不生效
            left: 0,
            top: 0,
            circle: false
          },
        ]
      }
    })


  }

})
